using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class BasePanel<T> : MonoBehaviour where T:class
{
    private static T instance;
    public static T Instance => instance;

    private void Awake()
    { 
        instance = this as T;
    }

    void Start() 
    {
        
    }

    void Update()
    {
        
    }

    public virtual void ShowMe()
    {
        this.gameObject.SetActive(true);
    }

    public virtual void HideMe()
    {
        this.gameObject.SetActive(false);

    }
}
